import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('@/views/Home.vue'),
    },
    {
      path: '/projectCenter',
      name: 'projectCenter',
      component: () => import('@/views/ProjectCenter.vue'),
    },
    {
      path: '/projectDetail',
      name: 'projectDetail',
      component: () => import('@/views/ProjectDetail.vue')
    },
    {
      path: '/design',
      name: 'design',
      component: () => import('@/views/Design.vue'),
    },
  ],
})

export default router
